<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JS初体验</title>
    <!-- 2. 内嵌式的js -->
    <script>
        // alert('沙漠骆驼');
    </script>
    <!-- 3. 外部js script双标签 -->
    <script src="my.js"></script>
</head>

<body>
    <!-- 1. 行内式的js -->
    <!-- <input type="button" value="唐伯虎" onclick="alert('秋香姐')" /> -->
</body>

</html>